package com.hxh.learn.model;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 用户角色
 * </p>
 *
 * @author hxh
 * @since 2023-03-02
 */
@TableName("sys_user_rule")
@ApiModel(value = "SysUserRule对象", description = "用户角色")
public class SysUserRule implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private Integer id;

    @ApiModelProperty("用户id")
    private String userId;

    @ApiModelProperty("角色id")
    private String ruleId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
    public String getRuleId() {
        return ruleId;
    }

    public void setRuleId(String ruleId) {
        this.ruleId = ruleId;
    }

    @Override
    public String toString() {
        return "SysUserRule{" +
            "id=" + id +
            ", userId=" + userId +
            ", ruleId=" + ruleId +
        "}";
    }
}
